import request from '@/utils/request'

// 查询存储通知的基本信息列表
export function listNotifications(query) {
  return request({
    url: '/wsd_notifications/list',
    method: 'get',
    params: query
  })
}

// 查询存储通知的基本信息详细
export function getNotifications(notificationsId) {
  return request({
    url: '/wsd_notifications/' + notificationsId,
    method: 'get'
  })
}

// 新增存储通知的基本信息
export function addNotifications(data) {
  return request({
    url: '/wsd_notifications',
    method: 'post',
    data: data
  })
}

// 修改存储通知的基本信息
export function updateNotifications(data) {
  return request({
    url: '/wsd_notifications',
    method: 'put',
    data: data
  })
}

// 撤回存储通知的基本信息
export function delNotifications(notificationsId) {
  return request({
    url: '/wsd_notifications/' + notificationsId,
    method: 'delete'
  })
}
